function folklore_performances() {
	var myDate = new Date();


	var fca = new Vue({
		el: '#main-content',
		data: {
			radioType:{
				'1':'星级农家乐数量',
				'2':'省旅游示范村数量',
				'3':'乡村民宿名录',
				'4':'特色乡',
				'10':'乡村旅游重点村',
			},
			radio: '3',
			year_arr: [],
			year: myDate.getFullYear(),
			month: '',
			data_value: {
				year: myDate.getFullYear(),
				month:'',
			},
			sum: 0,
			d_types_e: 1,
			user:{user_level:1},
			area_id: '',
			arr_id: [],
			mapInfo: {},
			reportNumMax: 0,
			reportList: [], //arr	报警次数统计
			reportMax: '', //int	报警次数超过多少次变颜色
		},
		created: function() {
			var that = this;
			if (that.user.user_level == 2) {
				that.area_id = that.user.info_city;
				that.arr_id[0] = {
					name: '辽宁省',
					value: '210000',
					type: false
				}
				that.arr_id[1] = {
					name: that.user.city_name,
					value: that.user.info_city,
					type: true
				}
			} else if (that.user.user_level == 3) {
				that.area_id = that.user.info_area;
				that.arr_id[0] = {
					name: '辽宁省',
					value: '210000',
					type: false
				}
				that.arr_id[1] = {
					name: that.user.city_name,
					value: that.user.info_city,
					type: false
				}
				that.arr_id[2] = {
					name: that.user.area_name,
					value: that.user.info_area,
					type: true
				}
			} else if(that.user.user_level == 4){
				
				if(that.user.info_area==0){
					that.area_id = that.user.info_city;
					that.arr_id[0] = {
						name: '辽宁省',
						value: '210000',
						type: false
					}
					that.arr_id[1] = {
						name: that.user.city_name,
						value: that.user.info_city,
						type: true
					}
				}else{
					that.area_id = that.user.info_area;
					that.arr_id[0] = {
						name: '辽宁省',
						value: '210000',
						type: false
					}
					that.arr_id[1] = {
						name: that.user.city_name,
						value: that.user.info_city,
						type: false
					}
					that.arr_id[2] = {
						name: that.user.area_name,
						value: that.user.info_area,
						type: true
					}
				}
				
				// that.arr_id[0] = {
				// 	name: '辽宁省',
				// 	value: '210000',
				// 	type: true
				// }
				// that.area_id = '210000';
			}else{
				that.arr_id[0] = {
					name: '辽宁省',
					value: '210000',
					type: true
				}
				that.area_id = '210000';
			}
			// that.fun_list()
			that.fun_year()
			that.fun_map()
			that.fun_MapInfo(that.area_id)
			that.fun_Looking(that.area_id)
			that.d_echange_type()

		},
		methods: {
			d_funradio:function (){
				this.fun_change()
				this.d_echange_type(1)
				// alert(this.radio)
			},
			d_echange_type: function(type) {
				var that = this;
				type = type ? type : that.d_types_e;
				if (type > 3) {
					that.$alert('该功能正在升级中', '', {
						confirmButtonText: '确定',
						callback: function() {
							// that.$message({
							// 	type: 'info',
							// 	message: `action: ${ action }`
							// });
						}
					})
					return
				}

				that.d_types_e = type;
				that.$nextTick(function() {
					d_echarts(that.d_types_e, {
						year: that.data_value.year,
						month: that.data_value.month,
						area_id: that.area_id,
					})
				})

				// function hello(){

				// alert("hello");?
				//重复执行某个方法
				// var t1 = window.setInterval(hello,1000);
				// var t2 = window.setInterval("hello()",3000);
				//去掉定时器的方法
				// window.clearInterval(t2);


			},
			// 获取地图信息
			get_information: function() {
				var that = this;
				var data_value
				ajax('InfoPC_newPointMapList', {
					//year: that.data_value.year,
					year:"2020",
					posprop: that.radio,
					month: that.data_value.month,
					area_id: that.area_id,
				}, function(data) {
					// console . log(data)
					var strn = JSON.parse(data);
					data_value = strn;
					that.fun_MapInfo(that.arr_id[that.arr_id.length - 1].value, that.arr_id[that.arr_id.length - 1].name)
					that.fun_Looking(that.arr_id[that.arr_id.length - 1].value, that.arr_id[that.arr_id.length - 1].name)
					that.d_echange_type()
				}, false)
				return data_value
			},
			fun_click: function(key, index) {
				console.log(key)
				var that = this;
				if (!key.type) {
					// lae
					that.$alert('您的权限不够,不能查看此区域信息', '', {
						confirmButtonText: '确定',
						callback: function() {
							// that.$message({
							// 	type: 'info',
							// 	message: `action: ${ action }`
							// });
						}
					})
					return

				}

				if (index === 0) {
					that.arr_id = that.arr_id.slice(0, 1);

				} else if (index === 1) {

					that.arr_id = that.arr_id.slice(0, 2);
				} else {

				}
				that.$forceUpdate();
				that.area_id = key.value;
				var mapValur = that.get_information()
				// 		//民宿名称
				var geoCoordMap = mapValur.point_list;
				// name 地区   value  数量   area_id 行政编码
				var data_value = mapValur.area_list
				var max_val = 0;
				for (var i = 0; i < data_value.length; i++) {
					if (max_val < data_value[i].value) {
						max_val = data_value[i].value;
					}
					data_value[i].value ? '' : data_value[i].value = 0;

				}
				$.getJSON('json/' + key.value + '.json', function(geoJson) {
					// console.log(geoJson)
					if (geoJson) {
						echarts.registerMap(key.name, geoJson);
						echarts_Map(key.name, geoCoordMap, data_value, max_val)
					}

				})
				// if(key&&key.value){
				// 	
				// 	// 判断是否省

				// 		

			},
			// 地图下钻显示
			fun_map: function() {
			
				var that = this;
				$.getJSON('json/'+that.arr_id[that.arr_id.length-1].value+'.json', function(geoJson) {
					echarts.registerMap(that.arr_id[that.arr_id.length-1].name, geoJson);
					var mapValur = that.get_information()
					//民宿名称
					var geoCoordMap = mapValur.point_list;
					// name 地区   value  数量   area_id 行政编码
					var data_value = mapValur.area_list
					//最大值
					var max_val = 0;
					for (var i = 0; i < data_value.length; i++) {
						data_value[i].value ? '' : data_value[i].value = 0;
						if (max_val < data_value[i].value) {
							max_val = data_value[i].value;
						}
						// console.log(data_value[i].value)
					}
					// console.log(data_value)

					echarts_Map(that.arr_id[that.arr_id.length-1].name, geoCoordMap, data_value, max_val).on('click', function(params) {

						if (params.data && params.data.area_id) {
							if (that.arr_id.length >= 3) {
								that.arr_id[2] = {
									name: params.data.name,
									value: params.data.area_id,
									type: true,
								}

							} else {
								that.arr_id[that.arr_id.length] = {
									name: params.data.name,
									value: params.data.area_id,
									type: true,
								}


							}
							that.$forceUpdate();
							// console.log(that.arr_id)
							that.area_id = params.data.area_id;
							// 判断是否省
							mapValur = that.get_information()
							//民宿名称
							geoCoordMap = mapValur.point_list;
							// name 地区   value  数量   area_id 行政编码
							data_value = mapValur.area_list
							for (var i = 0; i < data_value.length; i++) {
								if (max_val < data_value[i].value) {
									max_val = data_value[i].value;
								}
								data_value[i].value ? '' : data_value[i].value = 0;

							}
							$.getJSON('json/' + params.data.area_id + '.json', function(geoJson) {
								// console.log(geoJson)
								if (geoJson) {
									echarts.registerMap(params.data.name, geoJson);
									echarts_Map(params.data.name, geoCoordMap, data_value, max_val)
								}

							})
						} else {
							// console.log()
							if (params.data && params.data.id) {
								ajax('InfoPC_getThisMapPoint', {
									info_id: params.data.id,

								}, function(data) {
									// console . log(data)
									var strn = JSON.parse(data);
									console.log(strn)
									console.log("----------------------------")
									that.$msgbox( {
										message:'<div class="d_title_alert">'+(strn[0].posname?strn[0].posname:'')+'</div>'
									+'<div class="d_body_alert"><div> <image src="'+(strn[0].posimg?('http://www.xxnyly.com/'+strn[0].posimg):'http://www.xxnyly.com/views/xxnylyiweb/skin/default/image/map_kong.jpg')
									+'"></div>'
									+'<div>'
									+'<ul>'
										+'<li>地址：辽宁省'+(strn[0].city_name?strn[0].city_name:'')+(strn[0].area_name?strn[0].area_name:'')+(strn[0].posaddr?strn[0].posaddr:'')
										+'</li>'
										//+(strn[0].pid==3?('<li>创建时间：'+strn[0].jo_time+'</li>'
										//+'<li>投入资本：'+strn[0].jo_money+'万</li>'
										//+'<li>从业人数：'+strn[0].empnum+'人</li>'
										//+'<li>个人申报星级 ：'+strn[0].posprop_star+'</li>'
										//+'<li>评选星级 ：'+strn[0].star_status+'</li>'):'')
									+'<ul/>'
									+'</div></div><div class="xiangxi">'
										+'<a href="/trip/scenery/id/'+strn[0].scenery_id+'">详细信息</a>'
									+'</div>',
										dangerouslyUseHTMLString: true,
										showConfirmButton:false,
										customClass: 'd_class_alert'
										// center:true,
									});
								}, true);

								// alert(params.data.id)
							}

						}

					});
				})

			},
			// 地图下方信息显示
			fun_MapInfo: function(area_id) {
				var that = this;
				ajax('InfoPC_getAreaIDMapInfo', {
					//year: that.data_value.year,
					year: '2020',
					month: that.data_value.month,
					area_id: area_id,
					posprop: that.radio,
				}, function(data) {
					var strn = JSON.parse(data);
					that.mapInfo = strn;
				}, true)
			},
			// 统计图表
			fun_Looking: function(area_id) {
				var that = this;
				ajax('InfoPC_getMapAllLooking', {
					//year: that.data_value.year,
					year:"2020",
					month: that.data_value.month,
					area_id: area_id,
					posprop: that.radio,
				}, function(data) {
					var strn = JSON.parse(data);
					// console . log('???????????????????????????')
					// console . log(strn)
					that.reportList = strn.list; //arr	报警次数统计
					that.sum = strn.sum; //arr	报警次数统计
					that.reportNumMax = strn.max; //int	报警次数最多值

				}, true)
			},
			// 年筛选条件
			fun_year: function() {
				var that = this;
				ajax('InfoPC_getYearList', {}, function(data) {
					// console . log(data)
					var strn = JSON.parse(data);
					that.year_arr = strn;
					// that.year = strn[strn.length - 1];
				}, true)
			},

			fun_change: function() {
				var that = this;
				$('#map').html()
				// that.arr_id = []

				var that = this;
				// if (that.user.user_level == 2) {
				// 	that.area_id = that.user.info_city;
				// 	that.arr_id[0] = {
				// 		name: '辽宁省',
				// 		value: '210000',
				// 		type: false
				// 	}
				// 	that.arr_id[1] = {
				// 		name: that.user.city_name,
				// 		value: that.user.info_city,
				// 		type: true
				// 	}
				// } else if (that.user.user_level == 3) {
				// 	that.area_id = that.user.info_area;
				// 	that.arr_id[0] = {
				// 		name: '辽宁省',
				// 		value: '210000',
				// 		type: false
				// 	}
				// 	that.arr_id[1] = {
				// 		name: that.user.city_name,
				// 		value: that.user.info_city,
				// 		type: false
				// 	}
				// 	that.arr_id[2] = {
				// 		name: that.user.area_name,
				// 		value: that.user.info_area,
				// 		type: true
				// 	}
				// } else {
				// 	that.arr_id[0] = {
				// 		name: '辽宁省',
				// 		value: '210000',
				// 		type: true
				// 	}
				// 	that.area_id = '210000';
				// }
				console.log(that.arr_id)
				console.log('???????????????????????/')
				console.log(that.arr_id);
				that.data_value.year = that.year
				that.data_value.month = that.month
				that.fun_click(that.arr_id[that.arr_id.length - 1])
				that.fun_MapInfo(that.area_id)
				that.fun_Looking(that.area_id)
				that.d_echange_type()
				// this.fun_list(1)
			}

		}
	});



}